/// id : "1483687243724910593"
/// tenantId : "ao700007"
/// phone : "13625625358"
/// username : "ac900178"
/// nickname : "OwgqOc"
/// password : "$2a$08$4Le5.LY1lNCLI5NwInOsmuZ63ZTVoXtOEuEQyi8pmoU0/fG0R97.m"
/// avatar : null
/// wxOpenid : null
/// gender : null
/// realName : null
/// country : null
/// province : null
/// city : null
/// source : "H5"
/// remark : null
/// createUser : null
/// createTime : "2022-01-19 14:26:19"
/// updateUser : null
/// updateTime : "2022-01-19 14:26:19"
/// enabled : true
/// isDeleted : 0

class UserInfo {
  UserInfo({
      String? id, 
      String? tenantId, 
      String? phone, 
      String? username, 
      String? nickname, 
      String? password, 
      dynamic avatar, 
      dynamic wxOpenid, 
      dynamic gender, 
      dynamic realName, 
      dynamic country, 
      dynamic province, 
      dynamic city, 
      String? source, 
      dynamic remark, 
      dynamic createUser, 
      String? createTime, 
      dynamic updateUser, 
      String? updateTime, 
      bool? enabled, 
      int? isDeleted,}){
    _id = id;
    _tenantId = tenantId;
    _phone = phone;
    _username = username;
    _nickname = nickname;
    _password = password;
    _avatar = avatar;
    _wxOpenid = wxOpenid;
    _gender = gender;
    _realName = realName;
    _country = country;
    _province = province;
    _city = city;
    _source = source;
    _remark = remark;
    _createUser = createUser;
    _createTime = createTime;
    _updateUser = updateUser;
    _updateTime = updateTime;
    _enabled = enabled;
    _isDeleted = isDeleted;
}

  UserInfo.fromJson(dynamic json) {
    _id = json['id'];
    _tenantId = json['tenantId'];
    _phone = json['phone'];
    _username = json['username'];
    _nickname = json['nickname'];
    _password = json['password'];
    _avatar = json['avatar'];
    _wxOpenid = json['wxOpenid'];
    _gender = json['gender'];
    _realName = json['realName'];
    _country = json['country'];
    _province = json['province'];
    _city = json['city'];
    _source = json['source'];
    _remark = json['remark'];
    _createUser = json['createUser'];
    _createTime = json['createTime'];
    _updateUser = json['updateUser'];
    _updateTime = json['updateTime'];
    _enabled = json['enabled'];
    _isDeleted = json['isDeleted'];
  }
  String? _id;
  String? _tenantId;
  String? _phone;
  String? _username;
  String? _nickname;
  String? _password;
  dynamic _avatar;
  dynamic _wxOpenid;
  dynamic _gender;
  dynamic _realName;
  dynamic _country;
  dynamic _province;
  dynamic _city;
  String? _source;
  dynamic _remark;
  dynamic _createUser;
  String? _createTime;
  dynamic _updateUser;
  String? _updateTime;
  bool? _enabled;
  int? _isDeleted;

  String? get id => _id;
  String? get tenantId => _tenantId;
  String? get phone => _phone;
  String? get username => _username;
  String? get nickname => _nickname;
  String? get password => _password;
  dynamic get avatar => _avatar;
  dynamic get wxOpenid => _wxOpenid;
  dynamic get gender => _gender;
  dynamic get realName => _realName;
  dynamic get country => _country;
  dynamic get province => _province;
  dynamic get city => _city;
  String? get source => _source;
  dynamic get remark => _remark;
  dynamic get createUser => _createUser;
  String? get createTime => _createTime;
  dynamic get updateUser => _updateUser;
  String? get updateTime => _updateTime;
  bool? get enabled => _enabled;
  int? get isDeleted => _isDeleted;


  set gender(dynamic value) {
    _gender = value;
  }

  Map<String, dynamic> toJson() {
    final map = <String, dynamic>{};
    map['id'] = _id;
    map['tenantId'] = _tenantId;
    map['phone'] = _phone;
    map['username'] = _username;
    map['nickname'] = _nickname;
    map['password'] = _password;
    map['avatar'] = _avatar;
    map['wxOpenid'] = _wxOpenid;
    map['gender'] = _gender;
    map['realName'] = _realName;
    map['country'] = _country;
    map['province'] = _province;
    map['city'] = _city;
    map['source'] = _source;
    map['remark'] = _remark;
    map['createUser'] = _createUser;
    map['createTime'] = _createTime;
    map['updateUser'] = _updateUser;
    map['updateTime'] = _updateTime;
    map['enabled'] = _enabled;
    map['isDeleted'] = _isDeleted;
    return map;
  }

}